const path = require('path')
module.exports = {
  entry: './src/1.js',
  output: {
    path: path.resolve(__dirname, 'dist'),
    filename: '[name].min.js'
  },
  module: {
       rules: [{
           test: /\.scss$/,
           use: [{
               loader: "style-loader"
           }, {
               loader: "css-loader"
           }, {
               loader: "sass-loader"
           }]
       },{
         test:/\.html$/,
         use:[{
           loader:'html-loader'
         }]
       },{
         test:/\.js$/,
         use:{
           loader:'babel-loader'
         }
       }],
   }
};
